{% extends '../../../layout/admin-base.html' %}
<script src="{{ assets_path("js/base.js")}}"></script>
{% block page %}
<h3 class="page-title">
    菜单 <small>列表</small>
</h3>
<ul class="breadcrumb">
    <li>
        <i class="icon-home"></i>
        <a href="index.html">基本信息管理</a> 
        <i class="icon-angle-right"></i>
    </li>
    <li>
        <a href="{{url('admin/user/student')}}">菜单管理</a>
        <i class="icon-angle-right"></i>
    </li>
    <li><span>列表</span></li>
</ul>
{% end%}
{% block content %}

<div class="row-fluid">
    <div class="span12">
     
        <!-- BEGIN EXAMPLE TABLE PORTLET-->
        <div class="portlet box light-grey">
            <div class="portlet-title">
                <div class="caption"><i class="icon-list"></i>菜单列表</div>
                <div class="tools">
                    <a href="javascript:;" class="collapse"></a>
                    <a href="#portlet-config" data-toggle="modal" class="config"></a>
                    <a href="javascript:;" class="reload"></a>
                    <!-- <a href="javascript:;" class="remove"></a> -->
                </div>
            </div>
            <div class="portlet-body">
                <div class="clearfix">
                    <div class="btn-group">
                        <a id="sample_editable_1_new" class="btn green" href="{{url('admin/food/menu/new')}}">
                        增加<i class="icon-plus"></i>
                        </a>
                    </div>
                    <div class="btn-group pull-right">
                        <button class="btn dropdown-toggle" data-toggle="dropdown">工具<i class="icon-angle-down"></i>
                        </button>
                        <ul class="dropdown-menu pull-right">
                            <li><a href="#">打印</a></li>
                            <li><a href="#">另存为PDF</a></li>
                            <li><a href="#">另存为Excel</a></li>
                        </ul>
                    </div>
                </div>
                <table class="table table-striped table-bordered table-hover" id="sample_1">
                    <thead>
                        <tr>
                            <th style="width:8px;"><input type="checkbox" class="group-checkable" data-set="#sample_1 .checkboxes" /></th>
                            <th>菜单名称</th>
                            <th class="hidden-300">图片</th>
                            <th class="hidden-240">描述</th>
                            <th class="hidden-300">价格标准</th>
                            <!-- <th class="hidden-300">所属食堂</th> -->
                            <th ></th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for i in data %}
                        <tr class="odd gradeX">
                            <td><input type="checkbox" class="checkboxes" value="1" /></td>
                            <td>{{ i["Fname"] }}</td>
                            <td><img src="/static{{ i.get('Fimg', '') }}" style="width: 50px;height: 50px;"></td>
                            <td>{{ i["Fdesc"] }}</td>
                            <td>{{ i["Fprice"] }}</td>
                            <td><a class="btn mini purple" href="{{ reverse_url('menu.edit', i['Fid']) }}">
                                    <i class="icon-edit"></i>编辑
                                </a>
                                <a class="btn mini black" href="{{ reverse_url('menu.del_menu', i['Fid'], page_info['page']) }}">
                                    <i class="icon-trash"></i>删除
                                </a>
                            </td>
                        </tr>
                        {% end %}

                    </tbody>
                </table>
                {% module Paginate(page_info['total'], page_info['page']) %}
            </div>
        </div>
        <!-- END EXAMPLE TABLE PORTLET-->
    </div>
</div>
{% end%}